package com.memory.search.model.dto.topic;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author 邓哈哈
 * 2024/2/3 18:41
 * Function:
 * Version 1.0
 */

@Document(indexName = "message_index")
@Data
public class TopicEsDTO {
    /**
     * 热门话题
     */
    private String popularTopic;

    /**
     * 统计数目
     */
    private long docCount;

    public TopicEsDTO() {
    }

    public TopicEsDTO(String popularTopic, long docCount) {
        this.popularTopic = popularTopic;
        this.docCount = docCount;
    }
}
